﻿using Finance.ErrorCode;
using Finance.Domain;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace Finance.API.Write.Application.Command.FinancialCategoryCommand
{
    public class AddFinancialCategoryCommand : IRequest<APIResult<int>>
    {
        public int FinancialCategoryId { get; set; }
        /// <summary>
        /// 类别编号
        /// </summary>
        [Required(ErrorMessage = "类别编号不能为空")]
        public string CategoryNumber { get; set; }
        /// <summary>
        /// 类别名称
        /// </summary>
        [Required(ErrorMessage = "类别名称不能为空")]
        public string CategoryName { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Required(ErrorMessage = "备注不能为空")]
        public string Remark { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeleteTime { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        public string? DeleteName { get; set; }
        /// <summary>
        /// 删除标识
        /// </summary>
        public bool IsDel { get; set; }
    }
}
